import { request, handleError } from "./request";
const BASE_URL = "http://127.0.0.1:8088";

export const uploadFile = async (file) => {
  try {
    const param = new FormData();
    param.append("file", file);

    const res = await request.post(BASE_URL + "/user/uploadCSV", param);
    return res;
  } catch (err) {
    handleError(err);
  }
};
